$OpenBSD: patch-lib_Support_Unix_Signals_inc,v 1.3 2017/02/10 09:37:43 ajacoutot Exp $
--- lib/Support/Unix/Signals.inc.orig	Mon Oct 10 19:41:22 2016
+++ lib/Support/Unix/Signals.inc	Mon Oct 10 20:18:00 2016
@@ -25,7 +25,7 @@
 #include "llvm/Support/raw_ostream.h"
 #include <algorithm>
 #include <string>
-#if HAVE_EXECINFO_H
+#if defined(HAVE_BACKTRACE) && defined(ENABLE_BACKTRACES)
 # include <execinfo.h>         // For backtrace().
 #endif
 #if HAVE_SIGNAL_H
